<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <?php include_http_metas() ?>
    <?php include_metas() ?>
    <title>ezBIDS</title>
    <link rel="shortcut icon" href="/favicon.ico" />
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>
    <div id="container">
      <div id="logo">
        <img src="/images/logo.png" alt="ezBIDS" />
      </div>
      <div id="misc_text">
        <?php if ($sf_user->isAuthenticated()): ?>
        <?php if ($sf_user->getGuardUser()->getIsSuperAdmin()) echo "<a href='/backend.php/product/new'>Add product</a>" ?>
        <br />Bids left: <?php echo $sf_user->getGuardUser()->Profile->getBidsLeft() ?>
        <?php else: ?>
        <?php endif; ?>
      </div>
      <div id="navigation">
        <div id="user_welcome">
          Welcome,
          <?php
            if ($sf_user->isAuthenticated()) {
              echo $sf_user->getGuardUser()->getUserName();
              echo " (";
              echo link_to("Logout", "sf_guard_signout");
              echo ")";
            }
            else {
              echo 'Guest';
              echo " (";
              echo link_to("Login", "sf_guard_signin");
              echo ")";
            }
          ?>
        </div>
      </div>
      <div id="content">
        <?php echo $sf_content ?>
      </div>
      <div id="footer">
        ezBIDS Copyright &copy; 2011, All rights reserved
      </div>
    </div>
  </body>
</html>
